﻿using Domain.Entities.Stocks;
using FrameworkCore.Attributes;

namespace AiBLSmartEdu.Module.SmartStockSense.API.DTOs;

#nullable disable

/// <summary>
/// 股票详细信息
/// </summary>
[Map(typeof(StockInformation))]
public class StockInformationDto
{
    /// <summary>
    /// 外键：关联的股票ID。
    /// </summary>
    public long StockId { get; set; }

    /// <summary>
    /// 股票名称
    /// </summary>
    public string StockName { get; set; }

    /// <summary>
    /// 数据类型
    /// </summary>
    public StockDataType Type { get; set; }

    /// <summary>
    /// 时间戳。
    /// </summary>
    public DateTime Timestamp { get; set; }

    /// <summary>
    /// 数据为JSON结构
    /// </summary>
    public string JSON { get; set; }
}
